package model.tsp;


import lombok.Data;

import java.util.List;

@Data
public class Solution {

    private List<Integer> permutation;

    private int cost;

    public Solution() {
    }

    public Solution(List<Integer> permutation, int cost) {
        this.permutation = permutation;
        this.cost = cost;
    }

    public Solution copy() {
        return new Solution(permutation, cost);
    }

    public int length() {
        return permutation.size();
    }

}
